home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeeeIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeeeIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
-
-
-
- NNNNaaaammmmeeee
- RWBinaryTreeIterator - Rogue Wave library class
-
- SSSSyyyynnnnooooppppssssiiiissss
- // Smalltalk typedef:
-
-
-
- typedef RWBinaryTreeIterator SortedCollectionIterator;
- #include <rw/bintree.h>
- RWBinaryTree bt;
- RWBinaryTreeIterator iterate(bt);
-
-
-
-
- DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
- Iterator for class RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeee. Traverses the tree from the "smallest"
- to "largest" element, where "smallest" and "largest" are defined by the
- virtual function ccccoooommmmppppaaaarrrreeeeTTTToooo(((()))). Note that this approach is generally less
- efficient than using the member function RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeee::::::::aaaappppppppllllyyyy(((()))). Like all
- Rogue Wave iterators, the "current item" is undefined immediately after
- construction -- you must define it by using ooooppppeeeerrrraaaattttoooorrrr(((()))) or some other
- (valid) operation. Once the iterator has advanced beyond the end of the
- collection it is no longer valid -- continuing to use it will bring
- undefined results.
-
- PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
- None
-
- PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
- RWBinaryTreeIterator(const RWBinaryTree&);
-
-
- Constructs an iterator for an RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeee. Immediately after
- construction, the position of the iterator is undefined until positioned.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrr
- virtual RWCollectable*
- ooooppppeeeerrrraaaattttoooorrrr()();
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Advances iterator to the next "largest"
- element and returns a pointer to it. Returns nnnniiiillll when the end of the
- collection is reached.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
- virtual RWCollectable*
- ffffiiiinnnnddddNNNNeeeexxxxtttt(const RWCollectable* target);
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Moves iterator to the next item which
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeeeIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWBBBBiiiinnnnaaaarrrryyyyTTTTrrrreeeeeeeeIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
-
-
-
- compares equal to the object pointed to by ttttaaaarrrrggggeeeetttt and returns it. If no
- item is found, returns nnnniiiillll and the position of the iterator will be
- undefined.
-
- virtual void
- rrrreeeesssseeeetttt();
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Resets iterator to its state at
- construction.
-
- virtual RWCollectable*
- kkkkeeeeyyyy() const;
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Returns the item at the current
- iterator position.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-